package shilihua;
public class Main {
	public static void main(String[] args) {
        Computer computer1 = new Computer("NVIDIA GeForce RTX 4090", 16, 512);
        Computer computer2 = new Computer("GeForce RTX 4070", 12, 512);
        Computer computer3 = new Computer("iGame GeForce RTX 3090", 32, 1000);
        Computer computer4 = new Computer("Radeon RX 7900 XT", 16, 512);

        Student student1 = new Student("tongxue1", computer1);
        Student student2 = new Student("tongxue2" , computer2);
        Student student3 = new Student("tongxue3", computer3);
        Student student4 = new Student("tongxue4", computer4);

        Student[] students = {student1, student2, student3, student4};
        for (Student student : students) {
            System.out.println(student.getName() + "'s Computer Config: " + student.getComputerConfig());
        }
    }
}